package com.jiawa.train.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiawa.train.business.domain.po.SkToken;
import com.jiawa.train.business.req.SkTokenQueryReq;
import com.jiawa.train.business.req.SkTokenSaveReq;
import com.jiawa.train.business.resp.SkTokenQueryResp;
import com.jiawa.train.common.resp.PageResp;

import java.util.Date;

/**
 * <p>
 * 秒杀令牌 服务类
 * </p>
 *
 * @author hrz
 * @since 2025-09-10
 */
public interface ISkTokenService extends IService<SkToken> {

    void save( SkTokenSaveReq req);

    PageResp<SkTokenQueryResp> queryList(SkTokenQueryReq req);

    void delete(Long id);

    void genDaily(Date date, String trainCode);
}
